<?
include ("config.php");
session_start();

//list of encrypted crap :) 
$token  = $_REQUEST['t'];
$trans  = $_REQUEST['transid'];
$unique = $_REQUEST['uid'];
$total = $_REQUEST['total'];
$comission = $_REQUEST['comm'];
$random = $_REQUEST['unique'];

$blink = new Blink;
$user = $blink->GetByToken($token,"user");
$shop = $blink->GetByToken($unique,"shop");

$ushare = $config['ushare'];
$result = $blink->Transact($user,$shop,$total,$comission,1,$trans,$random,$ushare);
header("Location: index.php");
?>